package net.goutalk.glcs.module.system.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author: tanyujie
 * @Date: 2022/6/17 10:31
 */
@Data
public class AddAreaDto {

    @ApiModelProperty("父级主键")
    private Long parentId = 0L;

    @ApiModelProperty("区域编码")
    @NotBlank(message = "区域编码不能为空!")
    private String code;

    @ApiModelProperty("区域名称")
    @NotBlank(message = "区域名称不能为空!")
    private String name;

    @ApiModelProperty("快速查询")
    private String quickQuery;

    @ApiModelProperty("简拼")
    private String simpleSpelling;

    @ApiModelProperty("层次")
    private Integer layer;

    @ApiModelProperty("排序码")
    private Integer sortCode;

    @ApiModelProperty("备注")
    private String remark;
}
